package com.joker.orange.service;

import com.joker.orange.domain.UserLike;
import com.joker.orange.domain.vo.UserLikeVo;
import com.joker.orange.domain.bo.UserLikeBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 用户点赞Service接口
 *
 * @author Joker
 * @date 2024-07-04
 */
public interface IUserLikeService {

    UserLikeVo queryUserLikeVo(UserLikeBo bo);

    /**
     * 查询用户点赞
     */
    UserLikeVo queryById(Long id);

    /**
     * 查询用户点赞列表
     */
    TableDataInfo<UserLikeVo> queryPageList(UserLikeBo bo, PageQuery pageQuery);

    /**
     * 查询用户点赞列表
     */
    List<UserLikeVo> queryList(UserLikeBo bo);

    /**
     * 新增用户点赞
     */
    Boolean insertByBo(UserLikeBo bo);

    /**
     * 修改用户点赞
     */
    Boolean updateByBo(UserLikeBo bo);

    /**
     * 校验并批量删除用户点赞信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
